/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tdtest.controls.factory;

import javafx.scene.Node;
import tdtest.controls.ControlFactory;
import tdtest.controls.EventControl;
import tdtest.data.TDEvent;

/**
 *
 * @author sutter
 */
public class EventControlFactory implements ControlFactory<TDEvent> {
	
	@Override
	public Node createControl(TDEvent event) {
		EventControl eventControl = new EventControl(event);
		return eventControl;
	}
	
	@Override
	public TDEvent createObject() {
		return new TDEvent();
	}
	
}
